<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.usernet.product.utils.StringUtils"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache"%>
<div class="boxF btmMar10">
      <div class="boxF-top">
        <div class="boxTitleC">${name } - ${location}</div>
        <ul class="optTab2">
          <li <logic:equal value="3" name="sort">class="foucs"</logic:equal>><a href="${nav }_list_${id }_${flag}_3.html"><span>更新时间</span></a></li>
          <li <logic:equal value="1" name="sort">class="foucs"</logic:equal>><a href="${nav }_list_${id }_${flag}_1.html"><span>下载次数</span></a></li>
          <li <logic:equal value="2" name="sort">class="foucs"</logic:equal>><a href="${nav }_list_${id }_${flag}_2.html"><span>最多评分</span></a></li>
        </ul>
      </div>
      <div class="boxF-mid">
      	<logic:present name="softList">
      	<logic:iterate id="item" name="softList">
        <div class="recList" id="nav00">
            <div class="recSinW btmLine1">
            <div class="recImg"><a href="${nav }_detail_${item.id }_${flag}_${sort}.html" target="_blank" title="${item.name }"><img src="<logic:empty name="item" property="icon">resources/images/icon_empty.png</logic:empty><logic:notEmpty name="item" property="icon"><bean:message key="base"/>upload/icon/${item.icon }</logic:notEmpty>" alt="${item.name }" /></a></div>
            <dl>
              <dt><a href="${nav }_detail_${item.id }_${flag}_${sort}.html" title="${item.name }" target="_blank" title="${item.name }">${item.name }</a></dt>
              <bean:define id="avg" name="item" property="avg" type="java.lang.Integer" />
              <dd class="exp"><span class="appGrade"><%=StringUtils.avgString1(avg) %><%=StringUtils.avgString2(5-avg) %></span><span class="fTime">发布时间：<bean:write name="item" property="time" format="yyyy-MM-dd"/></span><span class="fTime">下载次数：<b>${item.count }</b></span><span class="fTime">软件大小：<b>${item.size }</b></span></dd>
              <dd class="intro"><a href="${nav }_detail_${item.id }_${flag}_${sort}.html" target="_blank" title="${item.name }">${item.remark }</a></dd>
              <dd>
              <a href="${nav }_detail_${item.id }_${flag}_${sort}.html" title="${item.name }" target="_blank" class="viewBtn">查看</a> 
              <a target="_blank" href="down_${item.id }.html" class="sdownBtn">下载</a>
              </dd>
            </dl>
          </div>
         </div>
         </logic:iterate>
         </logic:present>
        <div class="pageNumber">共<b>${page.countpage}页/${page.countrecord }</b>条记录&nbsp;&nbsp;&nbsp;<logic:notEqual value="1" name="page" property="nowpage"><a href="${nav }_list_${id }_${flag}_${sort }_1.html">首页</a>&nbsp;</logic:notEqual><logic:notEqual value="1" name="page" property="nowpage"><a href="${nav }_list_${id }_${flag}_${sort }_${page.nowpage-1 }.html">上一页</a>&nbsp;</logic:notEqual>
       	<bean:define id="startindex" name="page" property="startindex" type="java.lang.Integer" />
       	<bean:define id="nowpage" name="page" property="nowpage" type="java.lang.Integer" />
       	<bean:define id="endindex" name="page" property="endindex" type="java.lang.Integer" />
        <%for(;startindex<=endindex;startindex++){ %><a <%if(nowpage+1-1==startindex){ %>class="current"<%} %> href="${nav }_list_${id }_${flag}_${sort }_<%=startindex %>.html"><%=startindex %></a>&nbsp;<%} %>
        <logic:notEqual value="${page.countpage}" name="page" property="nowpage"><a href="${nav }_list_${id }_${flag}_${sort }_${nowpage+1 }.html">下一页</a>&nbsp;</logic:notEqual><logic:notEqual value="${page.countpage}" name="page" property="nowpage"><a href="${nav }_list_${id }_${flag}_${sort }_${page.countpage }.html">尾页</a>&nbsp;</logic:notEqual></div>
      </div>
    </div>
